package com.example.elderlycare.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.elderlycare.dao.entity.User;
import com.example.elderlycare.service.entity.QueryListResponseBody;
import com.example.elderlycare.service.entity.UserItem;

public interface UserService extends IService<User> {
    /**
     * 查询用户列表
     *
     * @param current      当前页
     * @param pageSize     页大小
     * @param queryWrapper 查询的条件构造器
     * @return QueryListResponseBody<UserItem>
     */
    QueryListResponseBody<UserItem> queryUserList(int current, int pageSize, QueryWrapper<User> queryWrapper);
}
